<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <input type="hidden" name="id" value="{$row.id}">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">所属批次:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control">{$row.stock_info.title}</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">关联产品:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control">{$row.product_info.name}</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">关联订单:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control">{$row.order_info.order_no}</span>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">关联用户:</label>
        <div class="col-xs-12 col-sm-8">
            <span class="form-control">{$row.use_user_info.nickname}</span>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">属性:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" rel="{$row.stock_info.attrs|count}" data-name="row[attrs]">
                <dd>
                    {foreach $row.stock_info.attrs as $key => $vo}
                    <ins>{$vo}</ins>
                    {/foreach}
                </dd>
                <dd class="form-inline">
                    {foreach $row.content as $key => $vo}
                    <input type="text" class="form-control" style="width: 110px;" disabled value="{$vo}" size="40" />
                    {/foreach}
                </dd>
            </dl>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>'可用', '0'=>'禁用'],$row['status'])}
        </div>
    </div>


    <div class="form-group hidden layer-footer">
        <div class="col-xs-2"></div>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
